import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import Toast from './components/Toast.vue'
import bus from "./assets/bus.js";

const app = createApp(App);

// 组件的使用：<组件名 />
// app.component("组件名", 组件对象);
app.component("Toast", Toast);
// 注意：全局组件要在挂载之前注册完毕

const vm = app.use(store).use(router).mount('#app');
vm.bus = bus;
// console.log(app);
// console.log(vm);